/**
 * futures : masterlink.futures.vo.Fuhivc.java
 */
package masterlink.futures.vo;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * TODO Write the description
 *
 * @author : tonyyang
 * Create date : 2011/10/27
 * @version 1.0.0	
 */
@Entity
@Table(name="GREEKS_CONCLUSION")
public class GreekConclusion implements Serializable {

	/**
	 * TODO write the document
	 */
	private static final long serialVersionUID = -5613567214678821166L;
	@EmbeddedId
	private GreekPk id;
	@Column(name="rightvalue")
	private Double rightvalue=0d;
	@Column(name="balance")
	private Double balance=0d;
	@Column(name="FLOATBALANCE")
	private Double floatBalance=0d;
	@Column(name="tax")
	private Double tax=0d;
	@Column(name="fee")
	private Double fee=0d;
	@Column(name="yes_floatbalance")
	private Double yFloatBalance=0d;
	@Column(name="yes_balanceright")
	private Double yBalanceRight=0d;
	@Column(name="balanceright")
	private Double balanceRight=0d;
	@Column(name="totalbalance")
	private Double totalBalance=0d;
	@Column(name="update_time")
	private Timestamp updateTime;
	/**
	 * @return the id
	 */
	public GreekPk getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(GreekPk id) {
		this.id = id;
	}
	/**
	 * @return the rightvalue
	 */
	public Double getRightvalue() {
		return rightvalue;
	}
	/**
	 * @param rightvalue the rightvalue to set
	 */
	public void setRightvalue(Double rightvalue) {
		this.rightvalue = rightvalue;
	}
	/**
	 * @return the balance
	 */
	public Double getBalance() {
		return balance;
	}
	/**
	 * @param balance the balance to set
	 */
	public void setBalance(Double balance) {
		this.balance = balance;
	}
	/**
	 * @return the floatBalance
	 */
	public Double getFloatBalance() {
		return floatBalance;
	}
	/**
	 * @param floatBalance the floatBalance to set
	 */
	public void setFloatBalance(Double floatBalance) {
		this.floatBalance = floatBalance;
	}
	/**
	 * @return the tax
	 */
	public Double getTax() {
		return tax;
	}
	/**
	 * @param tax the tax to set
	 */
	public void setTax(Double tax) {
		this.tax = tax;
	}
	/**
	 * @return the fee
	 */
	public Double getFee() {
		return fee;
	}
	/**
	 * @param fee the fee to set
	 */
	public void setFee(Double fee) {
		this.fee = fee;
	}
	/**
	 * @return the yFloatBalance
	 */
	public Double getyFloatBalance() {
		return yFloatBalance;
	}
	/**
	 * @param yFloatBalance the yFloatBalance to set
	 */
	public void setyFloatBalance(Double yFloatBalance) {
		this.yFloatBalance = yFloatBalance;
	}
	/**
	 * @return the yBalanceRight
	 */
	public Double getyBalanceRight() {
		return yBalanceRight;
	}
	/**
	 * @param yBalanceRight the yBalanceRight to set
	 */
	public void setyBalanceRight(Double yBalanceRight) {
		this.yBalanceRight = yBalanceRight;
	}
	/**
	 * @return the balanceRight
	 */
	public Double getBalanceRight() {
		return balanceRight;
	}
	/**
	 * @param balanceRight the balanceRight to set
	 */
	public void setBalanceRight(Double balanceRight) {
		this.balanceRight = balanceRight;
	}
	/**
	 * @return the totalBalance
	 */
	public Double getTotalBalance() {
		return totalBalance;
	}
	/**
	 * @param totalBalance the totalBalance to set
	 */
	public void setTotalBalance(Double totalBalance) {
		this.totalBalance = totalBalance;
	}
	/**
	 * @return the updateTime
	 */
	public Timestamp getUpdateTime() {
		return updateTime;
	}
	/**
	 * @param updateTime the updateTime to set
	 */
	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("GreekConclusion [id=");
		builder.append(id);
		builder.append(", rightvalue=");
		builder.append(rightvalue);
		builder.append(", balance=");
		builder.append(balance);
		builder.append(", floatBalance=");
		builder.append(floatBalance);
		builder.append(", tax=");
		builder.append(tax);
		builder.append(", fee=");
		builder.append(fee);
		builder.append(", yFloatBalance=");
		builder.append(yFloatBalance);
		builder.append(", yBalanceRight=");
		builder.append(yBalanceRight);
		builder.append(", balanceRight=");
		builder.append(balanceRight);
		builder.append(", totalBalance=");
		builder.append(totalBalance);
		builder.append(", updateTime=");
		builder.append(updateTime);
		builder.append("]");
		return builder.toString();
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (!(obj instanceof GreekConclusion))
			return false;
		GreekConclusion other = (GreekConclusion) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
}
